<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="https://cdn.jsdelivr.net/gh/joeymalvinni/webrtc-ip/dist/production.min.js"></script>
  <title>getIp</title>
</head>
<body>
<span>本机ip为：</span>
<span id="ip"></span>
<script>
  getIPs().then(data => {
    var ips = data.join('\n')
    document.getElementById('ip').innerHTML = ips
  })
</script>
</body>
</html>